package com.martin.study.base_core.test;

import com.martin.study.base_core.bean.HasMember;
import com.martin.study.base_core.bean.MineBeanDefinitionRegistryPostProcessor;
import org.springframework.context.annotation.AnnotatedBeanDefinitionReader;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试内部类是配置类的解析流程
 */
public class AnnotatedBeanDefinitionReaderTestB {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
		AnnotatedBeanDefinitionReader annotatedBeanDefinitionReader = new AnnotatedBeanDefinitionReader(context);
		annotatedBeanDefinitionReader.registerBean(HasMember.class);
		context.refresh();
	}
}
